﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020011C7 RID: 4551
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SpaceZooExchangeItemCsReq : IMessage<SpaceZooExchangeItemCsReq>, IMessage, IEquatable<SpaceZooExchangeItemCsReq>, IDeepCloneable<SpaceZooExchangeItemCsReq>, IBufferMessage
	{
		// Token: 0x1700399E RID: 14750
		// (get) Token: 0x0600CBC6 RID: 52166 RVA: 0x00225410 File Offset: 0x00223610
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SpaceZooExchangeItemCsReq> Parser
		{
			get
			{
				return SpaceZooExchangeItemCsReq._parser;
			}
		}

		// Token: 0x1700399F RID: 14751
		// (get) Token: 0x0600CBC7 RID: 52167 RVA: 0x00225417 File Offset: 0x00223617
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SpaceZooExchangeItemCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170039A0 RID: 14752
		// (get) Token: 0x0600CBC8 RID: 52168 RVA: 0x00225429 File Offset: 0x00223629
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SpaceZooExchangeItemCsReq.Descriptor;
			}
		}

		// Token: 0x0600CBC9 RID: 52169 RVA: 0x00225430 File Offset: 0x00223630
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SpaceZooExchangeItemCsReq()
		{
		}

		// Token: 0x0600CBCA RID: 52170 RVA: 0x00225438 File Offset: 0x00223638
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SpaceZooExchangeItemCsReq(SpaceZooExchangeItemCsReq other) : this()
		{
			this.itemId_ = other.itemId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600CBCB RID: 52171 RVA: 0x0022545D File Offset: 0x0022365D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SpaceZooExchangeItemCsReq Clone()
		{
			return new SpaceZooExchangeItemCsReq(this);
		}

		// Token: 0x170039A1 RID: 14753
		// (get) Token: 0x0600CBCC RID: 52172 RVA: 0x00225465 File Offset: 0x00223665
		// (set) Token: 0x0600CBCD RID: 52173 RVA: 0x0022546D File Offset: 0x0022366D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ItemId
		{
			get
			{
				return this.itemId_;
			}
			set
			{
				this.itemId_ = value;
			}
		}

		// Token: 0x0600CBCE RID: 52174 RVA: 0x00225476 File Offset: 0x00223676
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SpaceZooExchangeItemCsReq);
		}

		// Token: 0x0600CBCF RID: 52175 RVA: 0x00225484 File Offset: 0x00223684
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SpaceZooExchangeItemCsReq other)
		{
			return other != null && (other == this || (this.ItemId == other.ItemId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600CBD0 RID: 52176 RVA: 0x002254B4 File Offset: 0x002236B4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.ItemId != 0U)
			{
				num ^= this.ItemId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600CBD1 RID: 52177 RVA: 0x002254F3 File Offset: 0x002236F3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600CBD2 RID: 52178 RVA: 0x002254FB File Offset: 0x002236FB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600CBD3 RID: 52179 RVA: 0x00225504 File Offset: 0x00223704
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.ItemId != 0U)
			{
				output.WriteRawTag(96);
				output.WriteUInt32(this.ItemId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600CBD4 RID: 52180 RVA: 0x00225538 File Offset: 0x00223738
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.ItemId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ItemId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600CBD5 RID: 52181 RVA: 0x00225576 File Offset: 0x00223776
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SpaceZooExchangeItemCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.ItemId != 0U)
			{
				this.ItemId = other.ItemId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600CBD6 RID: 52182 RVA: 0x002255A7 File Offset: 0x002237A7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600CBD7 RID: 52183 RVA: 0x002255B0 File Offset: 0x002237B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 96U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.ItemId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x040051D6 RID: 20950
		private static readonly MessageParser<SpaceZooExchangeItemCsReq> _parser = new MessageParser<SpaceZooExchangeItemCsReq>(() => new SpaceZooExchangeItemCsReq());

		// Token: 0x040051D7 RID: 20951
		private UnknownFieldSet _unknownFields;

		// Token: 0x040051D8 RID: 20952
		public const int ItemIdFieldNumber = 12;

		// Token: 0x040051D9 RID: 20953
		private uint itemId_;
	}
}
